$tp @s ~ ~ ~ facing entity @n[type=!#vs:not_living,distance=..15,nbt={UUID:$(target)}] eyes
$title @p[distance=..15,nbt={UUID:$(target)}] actionbar [{"text":"⚠","color":"yellow"}]
$execute if predicate vs:periodic_5tick run playsound block.note_block.snare master @p[nbt={UUID:$(target)}] ~ ~ ~ 99999
execute if predicate vs:periodic_5tick run particle end_rod ~ ~ ~ 0.1 0.1 0.1 0.05 5


#timer
function vs:system/game_ctrol/guard_tower/anim/time_to {anim:"ready_attack"}